<h2 class="contentTitle">表单验证</h2>


<div class="pageContent">
	
			<form method="post" action="{:U('Attribute/batchcatattr')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>分类：</dt>
				<dd>
					<!--
					<select name="category_id">
                    <option value="">请选择分类</option>
                    <option value="3">手机</option>
                    <option value="70">平板电脑</option>
                    <option value="4">手机配件</option>
                    <option value="14">手机饰品</option>
                    <option value="186">手机靓号</option>					
					</select>
					-->
					<input id="inputcate1" name="cat.id"  value="{if $pinfo}{$pinfo.id}{else}{$info['parent_id']}{/if}"  type="hidden"/>
						<input class="required" name="cat.name" value="{if $pinfo}{$pinfo.name}{else}{$cats[$info['parent_id']]['name']}{/if}" type="text" postField="keywords" suggestFields="id,name" suggestUrl="{:U('Content/suggest',array('tn'=>'product_category_tag','fn'=>'id,name'))}" lookupGroup="cat"/><a class="btnLook" href="{:U('Cat/lookup',array('tn'=>'product_category_tag','fn'=>'id,name','where'=>myencode(array('status'=>1),1)))}" lookupGroup="cat">查找分类</a>
                        <span class="info">查找分类</span>
				</dd>
			</dl>
			<dl>
				<dt>属性名称：</dt>
				<dd>
				<input type="hidden" value="" name="attr.id">
				<textarea name="attr.attr" cols='60' rows='6'></textarea>
				<a class="btnLook" target="dialog" width="800" height="450" rel='findattrbute' href="{:U('Attribute/lookup',array('tn'=>'attribute','fn'=>'id,name,value'))}" lookupGroup="attr">查找带回</a>
				
				</dd>
			</dl>
		
		</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
					</li>
				</ul>
			</div>		
	</form>
	
</div>

